import request from './request';

export function getClanList(params) {
  return request({ url: '/api/v1/clans', method: 'get', params });
}
export function addClan(data) {
  return request({ url: '/api/v1/clans', method: 'post', data });
}
export function updateClan(data) {
  return request({ url: `/api/v1/clans/${data.id}`, method: 'put', data });
}
export function deleteClan(id) {
  return request({ url: `/api/v1/clans/${id}`, method: 'delete' });
} 